<template>
  <div class="home-header">
    <div class="logo">Haier</div>
    <div class="search-bar">
      <input
        type="text"
        :value="searchValue"
        @input="$emit('update:searchValue', $event.target.value)"
        placeholder="Find anything you like"
      />
    </div>
    <div class="header-icons">
      <span class="icon">🛒</span>
      <span class="icon">💬</span>
    </div>
  </div>
</template>

<script setup>
defineProps({
  searchValue: String
})
</script>

<style scoped lang="less">
.home-header {
  display: flex;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 12px;
  .logo {
    font-weight: bold;
    font-size: 22px;
    margin-right: 12px;
  }
  .search-bar {
    flex: 1;
    input {
      width: 100%;
      border-radius: 20px;
      border: none;
      padding: 6px 16px;
      font-size: 14px;
      outline: none;
    }
  }
  .header-icons {
    display: flex;
    align-items: center;
    margin-left: 12px;
    .icon {
      margin-left: 8px;
      font-size: 18px;
    }
  }
}
</style> 